package cn.edu.zsc.rbac.domain.vo;

import cn.edu.zsc.rbac.util.DateTimeUtils;

import java.time.LocalDateTime;

public class DeptVo extends BaseVo{
    /**
     * 部⻔名称
     */
    public String name;
    /**
     * 联系电话
     */
    public String phone;
    public DeptVo() {
    }

    public DeptVo(Integer id, LocalDateTime createAt, LocalDateTime updateAt, String phone, String name) {
        super(id, createAt, updateAt);
        this.name = name;
        this.phone = phone;

    }

    @Override
    public String toString() {
        return String.format("ID：%d，名称：%s，电话：%s，更新时间：%s", id, name, phone, DateTimeUtils.format(updateAt));
    }
}
